<template>
  <div class="floor">
    <div class="floorTop">
      <h2>{{floor.FloorTitle}}</h2>
    </div>
    <div class="floorMain">
      <div class="one">
        <div>
          <ul>
            <li v-for="(f,index) in floor.FloorOne.OneTitle" :key="index">{{floor.FloorOne.OneTitle[index]}}</li>
          </ul>
        </div>
        <div><img :src="floor.FloorOne.OneImg.ImgUrl" alt=""></div>
      </div>
      <div class="two block">
        <el-carousel trigger="click" height="358px">
          <el-carousel-item v-for="(img,index) in floor.FloorTwo" :key='index'>
            <a href="javascript:;">
              <img :src="img.ImgUrl" alt="">
            </a>
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="three">
        <div v-for="(fff,index) in floor.FloorThree" :key='index'>
          <img :src="fff.ImgUrl" alt="">
        </div>

      </div>
      <div class="four"><img :src="floor.FloorFour.ImgUrl" alt=""></div>
      <div class="five">
        <div v-for="(fff,index) in floor.FloorFive" :key='index'>
          <img :src="fff.ImgUrl" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Floor',
  props: ['floor'],
  data () {
    return {

    }
  }

}
</script>

<style scoped lang="less">
.floor {
  margin-top: 20px;
  .floorTop {
    border-bottom: 2px solid #f56c6c;
    h2 {
      color: #c81623;
      margin: 5px 0;
    }
  }
  .floorMain {
    div{
      overflow: hidden;
      img{
        transition: 0.3s all;
      }
      img:hover{
        transform: scale(1.01);
      }
    }
    height: 360px;
    display: flex;
    // one
    .one {
      & div:nth-child(1) {
        height: 106px;
        ul {
          padding-top: 5px;
          display: flex;
          flex-wrap: wrap;
          justify-content: space-around;
          li {
            color: black;
            width: 40%;
            padding: 3px 0;
            text-align: center;
            font-size: 13px;
            border-bottom: 1px solid #ccc;
            margin: 5px 5% 0;
          }
        }
      }
      & div:nth-child(2){
        img{
          width: 100%;

        }
      }
    }
    & > div {
      border: 1px solid #ccc;
      width: 210px;
      &:nth-child(2) {
        width: 360px;
      }
    }
    // three
    .three,.five{
      display: flex;
      flex-direction: column;
      div{
        flex: 1;
        &:nth-child(1){
          border-bottom:1px solid #ccc ;
        }
        img{
          width: 100%;
          height: 100%;
        }
      }
    }
    // four
    .four{
      img{
        width: 100%;
        height: 100%;
      }
    }
  }
}
// 轮播图区

.el-carousel__item {
  display: flex;
  height: 358px;
  a{
    flex: 1;
    img{
      width: 100%;
      height: 360px;
    }
  }
  }

</style>
